import http from '../../request/api';

const state = {
    shopList: []
}

const getters = {

}

const mutations = {
    setShopList(state, v) {
        console.log('setShopList', v);
        state.shopList = v
    },
}
const actions = {
    getShopList: async ({ commit }) => {
        let res = await http.getGoodsList({ page: 1, pageSize: 9999 });
        commit('setShopList', res.data)
    }
}

export default {
    state,
    getters,
    actions,
    mutations
}